package com.zryc.shop.oms.controller;

import com.alibaba.csp.sentinel.adapter.reactor.ReactorSphU;
import com.zryc.shop.oms.service.ICompanyAddressService;
import com.zryc.shop.util.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 公司收发货地址表 前端控制器
 * </p>
 *
 * @author LiYe
 * @since 2023-02-14
 */
@RestController
@RequestMapping("/oms/companyAddress")
public class CompanyAddressController {
    @Autowired
    private ICompanyAddressService companyAddressService;

    @GetMapping("/list")
    @ApiOperation("返回退货收货点地址列表")
    public ResponseResult list() {
        return new ResponseResult(200, "查询完成", companyAddressService.list());
    }

}
